package com.zhoug.player.hikvision;


import java.io.Serializable;

import androidx.annotation.Keep;

/**
 * <p>录像片段</p>
 * <p>
 * {
 * "size": 1204585608,
 * "beginTime": "2019-10-11T00:00:00.000+08:00",
 * "endTime": "2019-10-11T01:19:35.332+08:00"
 * }
 *
 * @author 张华洋 2018/9/17 15:50
 * @version V1.0.0
 * @name RecordSegment
 */
@Keep
public class RecordSegment implements Serializable {
    /**
     * 录像片段开始时间
     *格式 2019-10-11T00:00:00.000+08:00
     */
    private String BeginTime;
    /**
     * 录像片段结束时间
     *格式 2019-10-11T00:00:00.000+08:00
     */
    private String EndTime;
    private long Size;
    /**
     *录像片段开始时间{@link #BeginTime}转化为时间戳 毫秒
     */
    private long beginTimeMillis=-1;
    private long endTimesMillis=-1;

    public RecordSegment() {
    }

    public RecordSegment(String beginTime, String endTime) {
        this.BeginTime = beginTime;
        this.EndTime = endTime;
    }

    public RecordSegment(String beginTime, String endTime, long size) {
        this.BeginTime = beginTime;
        this.EndTime = endTime;
        this.Size = size;
    }

    public String getBeginTime() {
        return BeginTime;
    }

    public void setBeginTime(String beginTime) {
        this.BeginTime = beginTime;
    }

    public String getEndTime() {
        return EndTime;
    }

    public void setEndTime(String endTime) {
        this.EndTime = endTime;
    }

    public long getSize() {
        return Size;
    }

    public void setSize(long size) {
        this.Size = size;
    }

    public long getBeginTimeMillis() {
        return beginTimeMillis;
    }

    public void setBeginTimeMillis(long beginTimeMillis) {
        this.beginTimeMillis = beginTimeMillis;
    }

    public long getEndTimesMillis() {
        return endTimesMillis;
    }

    public void setEndTimesMillis(long endTimesMillis) {
        this.endTimesMillis = endTimesMillis;
    }
}
